<?php
/**
 * ResMania
 *
 * Install view template
 *
 * Main HTML template for installation page
 *
 * Part of the ResMania Joomla Extension.
 * Copywrite Webformatique/ResMania 2009 - Present
 * Released under the GPLv3 license Terms. More
 * Information can be found in the associated license
 * file distributed with this extension. (license.html)
 *
 * More Information contact: info@resmania.com
 *
 * Author: Rob Locke
 */
// no direct access
defined('_JEXEC') or die('Restricted access');

class ResMania_Install_View {

    function withView(){
        $JoomlaPath = JURI::base();

        //We don't have our core files, so we need to duplicate this code here. Use RM_Joomla_Connector::is16() if possible
        $versionClass = new JVersion();
        $version = $versionClass->getShortVersion();                
        $Is16 = version_compare($version, '1.6.0', '>=');
        $Is15 = version_compare($version, '1.6.0', '<');

        $model = new ResMania_Install_Model();
        $installer_version = $model->getVersion();
        
        require_once dirname(__FILE__).DS.'tmpl'.DS.'install.html.php';
        return true;
    }
    
    function withoutView(){
        return;
    }

}


